package com.agile.leetcode.canculateObjectSize.calculateIntAndIntegerSize;

import org.openjdk.jol.info.ClassLayout;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/5/25 11:43
 */
public class CalculateIntegerAndIntSize {
    public static void main(String[] args) {
        //
        int i = 798989898;
        Integer j = 4;
        System.out.println("i的大小=" + ClassLayout.parseInstance(i).toPrintable());
        System.out.println("j的大小=" + ClassLayout.parseInstance(j).toPrintable());
    }
}
